package com.xt.purchasingsystem.annotation;

import org.springframework.validation.annotation.Validated;

import java.lang.annotation.*;
import java.util.PrimitiveIterator;

/**
 * @author: 老姚
 * Date:  2020/5/24 11:38
 */
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
//子类可继承
//@Inherited
@Documented
public @interface PurchaseClearCache {
    /**
     * 要清空缓存key的前缀
     * @return
     */
    String[] prefix() default "cache";
}
